#include <curses.h>

#define Y 10
#define X 15

char *map[]={
"###############",
"#      #      #",
"#             #",
"#      ### ####",
"#### ###   #  #",
"#          #  #",
"#          #  #",
"#             #",
"#          #  #",
"###############"
};

int main()
{
	//TEST CODE
    //initialize curses
    keypad(initscr(),1);
    curs_set(0);
   
    //player's starting coordinates
    int y=1;
    int x=1;
   
    //draw map
    for (int yy=0;yy<10;yy++)
        for (int xx=0;xx<15;xx++)
            mvaddch(yy,xx,map[yy][xx]);
    //draw player
    mvaddch(y,x,'@');

    //wait for key press before leaving
    getch();
    //clean up after we've finished using curses
    return endwin();
	///
}